<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <title>Document</title>
    <style>
        div {
            width: 400px;
            height: 400px;
            background-color: #838383;
        }
    </style>
</head>

<body>
    <div></div>
</body>

<script>
    const a = document.querySelector('div')
    let i = 0

    function dian() {
        a.innerHTML = i++
    }

    function fen(fn, time) {



    }
    let falg = true

    a.addEventListener('click', function () {
        if (falg) {
            a.innerHTML = i++
            falg = false
            setTimeout(() => {
                falg = true
            }, 1000)
        }
    })
</script>

</html>